#include<iostream>
#include<vector>
#include<unordered_map>
using namespace std;
class Solution {
public:
    bool findSubarrays(vector<int>& nums) {
        int l=0,r=1;
        unordered_map<int,int>map;
        if(nums.size()<3)return false;
        for(;r<nums.size();r++,l++)
        {
            map[nums[l]+nums[r]]++;
            if(map[nums[l]+nums[r]]==2)return true;
        }
        return false;
    }
};